let index = 0;
const slides = document.querySelector('.b1');
const slide = document.querySelector('.box5');

function nextSlide() {
    slide.style.transform = `translateX(-${index * 100}%)`;
    index++;
    if (index >= 3) {
        index = 0;
    }
}

setInterval(nextSlide, 1500);

 